import logging

from api_app.analyzers_manager.classes import DockerBasedAnalyzer, FileAnalyzer
from tests.mock_utils import MockUpResponse

logger = logging.getLogger(__name__)


class DroidLysis(FileAnalyzer, DockerBasedAnalyzer):
    name: str = "android_analyzer"
    url: str = "http://malware_tools_analyzers:4002/droidlysis"
    # interval between http request polling
    poll_distance: int = 2
    # http request polling max number of tries
    max_tries: int = 30

    def update(self) -> bool:
        pass

    def run(self):
        binary = self.read_file_bytes()
        fname = str(self.filename).replace("/", "_").replace(" ", "_")
        args = [
            "--input",
            f"@{fname}",
            "-o",
            "/opt/deploy/droidlysis/out/",
            "--config",
            "/opt/deploy/droidlysis/conf/general.conf",
        ]
        req_data = {"args": args}
        req_files = {fname: binary}
        logger.info(
            f"Running {self.analyzer_name} on {self.filename} with args: {args}"
        )
        result = self._docker_run(req_data, req_files, analyzer_name=self.analyzer_name)
        return result

    @staticmethod
    def mocked_docker_analyzer_get(*args, **kwargs):
        return MockUpResponse(
            {
                "report": {
                    "kits": {
                        "wq": False,
                        "ad2": False,
                        "adx": False,
                        "air": False,
                        "apm": False,
                        "gdt": False,
                        "gsf": False,
                        "iab": False,
                        "iac": False,
                        "ibm": False,
                        "iqv": False,
                        "izp": False,
                        "ju6": False,
                        "jwt": False,
                        "s4m": False,
                        "sas": False,
                        "tns": False,
                        "xml": False,
                        "ybq": False,
                        "yoc": False,
                        "acra": False,
                        "adop": False,
                        "adot": False,
                        "aduu": False,
                        "adwo": False,
                        "amap": False,
                        "anet": False,
                        "anzu": False,
                        "beta": False,
                        "dove": False,
                        "esri": False,
                        "gson": False,
                        "heap": False,
                        "j2me": False,
                        "jcip": False,
                        "jose": False,
                        "jsch": False,
                        "keen": False,
                        "kiip": False,
                        "koom": False,
                        "krux": False,
                        "lugg": False,
                        "moat": False,
                        "moca": False,
                        "nend": False,
                        "okio": False,
                        "pyze": False,
                        "tune": False,
                        "uber": False,
                        "vpon": False,
                        "waps": False,
                        "yext": False,
                        "yume": False,
                        "zapr": False,
                        "zong": False,
                        "aarki": False,
                        "adgem": False,
                        "adjoe": False,
                        "adlib": False,
                        "admob": False,
                        "adobe": False,
                        "adsdk": False,
                        "agoop": False,
                        "airad": False,
                        "amoad": False,
                        "ansca": False,
                        "apptv": False,
                        "baidu": False,
                        "batch": False,
                        "bitly": False,
                        "blesh": False,
                        "bolts": False,
                        "braze": False,
                        "bugly": False,
                        "carto": False,
                        "cauly": False,
                        "dawin": False,
                        "devio": False,
                        "dom4j": False,
                        "domob": False,
                        "ehawk": False,
                        "fiksu": False,
                        "fluzo": False,
                        "fyber": False,
                        "gigya": False,
                        "giphy": False,
                        "gplus": False,
                        "gravy": False,
                        "herow": False,
                        "inrix": False,
                        "jaxen": False,
                        "jpush": False,
                        "jsoup": False,
                        "jumio": False,
                        "junit": False,
                        "kakao": False,
                        "karte": False,
                        "kidoz": False,
                        "kuguo": False,
                        "lisnr": False,
                        "lmmob": False,
                        "mdotm": False,
                        "mopub": False,
                        "netty": False,
                        "oauth": False,
                        "ogury": False,
                        "omsdk": False,
                        "openx": False,
                        "oztam": False,
                        "pablo": False,
                        "parse": False,
                        "pendo": False,
                        "penn5": False,
                        "piwik": False,
                        "pokkt": False,
                        "pushy": False,
                        "qwapi": False,
                        "radar": False,
                        "react": False,
                        "repro": False,
                        "rjfun": False,
                        "slf4j": False,
                        "smart": False,
                        "split": False,
                        "swirl": False,
                        "swrve": False,
                        "tapad": False,
                        "tapit": False,
                        "tappx": False,
                        "teads": False,
                        "teemo": False,
                        "ucrop": False,
                        "umeng": False,
                        "unity": False,
                        "uxcam": False,
                        "verve": False,
                        "vserv": False,
                        "wiyun": False,
                        "ximad": False,
                        "xmode": False,
                        "yoadx": False,
                        "youmi": False,
                        "zhihu": False,
                        "zucks": False,
                        "zxing": False,
                        "acuant": False,
                        "adbrix": False,
                        "adcash": False,
                        "adflex": False,
                        "adform": False,
                        "adjust": False,
                        "admoda": False,
                        "admogo": False,
                        "admost": False,
                        "adtech": False,
                        "adzerk": False,
                        "aihelp": False,
                        "aliott": False,
                        "alooma": False,
                        "amazon": False,
                        "amobee": False,
                        "anagog": False,
                        "anjlab": False,
                        "anvato": False,
                        "anysdk": False,
                        "apache": False,
                        "appsee": False,
                        "aspose": False,
                        "axonix": False,
                        "balysv": False,
                        "bigkoo": False,
                        "blankj": False,
                        "branch": False,
                        "bugsee": False,
                        "bypush": False,
                        "chirag": False,
                        "criteo": False,
                        "critic": False,
                        "cuebiq": False,
                        "dagger": False,
                        "demdex": False,
                        "dexter": False,
                        "didomi": False,
                        "dooboo": False,
                        "duapps": False,
                        "elonen": False,
                        "evidon": False,
                        "fabric": False,
                        "fidzup": False,
                        "flowup": False,
                        "flurry": False,
                        "flymob": False,
                        "follow": False,
                        "gemius": False,
                        "geniee": False,
                        "gimbal": False,
                        "glispa": False,
                        "heaton": False,
                        "heytap": False,
                        "heyzap": False,
                        "hockey": False,
                        "huawei": False,
                        "hyprmx": False,
                        "igexin": False,
                        "iggcom": False,
                        "inloco": False,
                        "inmobi": False,
                        "instal": False,
                        "iproov": False,
                        "iqzone": False,
                        "junrar": False,
                        "kotlin": False,
                        "lenddo": False,
                        "leolin": False,
                        "loggly": False,
                        "loopme": False,
                        "lotame": False,
                        "lottie": False,
                        "lsense": False,
                        "mailru": False,
                        "mapbox": False,
                        "mediba": False,
                        "metaps": False,
                        "mime4j": False,
                        "mobfox": False,
                        "moblin": False,
                        "mojise": False,
                        "momark": False,
                        "nexage": False,
                        "okhttp": False,
                        "ooyala": False,
                        "openvk": False,
                        "outbid": False,
                        "pangle": False,
                        "papaya": False,
                        "paypal": False,
                        "picasa": False,
                        "placed": False,
                        "placer": False,
                        "plleti": False,
                        "pubnub": False,
                        "pusher": False,
                        "quclix": False,
                        "raygun": False,
                        "revmob": False,
                        "rumble": False,
                        "scribe": False,
                        "sdkbox": False,
                        "sentry": False,
                        "shuwei": False,
                        "sizmek": False,
                        "smaato": False,
                        "soomla": False,
                        "tamoco": False,
                        "tapdaq": False,
                        "tapjoy": False,
                        "tenjin": False,
                        "timber": False,
                        "tinder": False,
                        "tinmoo": False,
                        "tutela": False,
                        "vdopia": False,
                        "vdroid": False,
                        "volley": False,
                        "vungle": False,
                        "webkit": False,
                        "weplan": False,
                        "wooboo": False,
                        "woopra": False,
                        "xiaomi": False,
                        "xylink": False,
                        "yandex": False,
                        "zenjoy": False,
                        "zxcvbn": False,
                        "abtasty": False,
                        "actv8me": False,
                        "ad4game": False,
                        "adboost": False,
                        "adcenix": False,
                        "adchina": False,
                        "adflake": False,
                        "adfonic": False,
                        "adlocus": False,
                        "admitad": False,
                        "admixer": False,
                        "admuing": False,
                        "adscend": False,
                        "adswizz": False,
                        "adtrial": False,
                        "adwhirl": False,
                        "aerserv": False,
                        "airpush": False,
                        "algolia": False,
                        "algorix": False,
                        "alibaba": False,
                        "alijson": False,
                        "alimama": False,
                        "altamob": False,
                        "android": False,
                        "andromo": False,
                        "appenda": False,
                        "applift": False,
                        "appnext": False,
                        "appzilo": False,
                        "apsalar": False,
                        "babator": False,
                        "bangcle": False,
                        "beemray": False,
                        "beintoo": False,
                        "bitlabs": False,
                        "bluecat": False,
                        "bluekai": False,
                        "brandio": False,
                        "buglife": False,
                        "bugsnag": False,
                        "burstly": False,
                        "cheatah": False,
                        "conviva": False,
                        "copilot": False,
                        "cordova": False,
                        "countly": False,
                        "databox": False,
                        "datadog": False,
                        "display": False,
                        "eftimov": False,
                        "emarsys": False,
                        "embrace": False,
                        "enhance": False,
                        "exponea": False,
                        "factual": False,
                        "flexion": False,
                        "flutter": False,
                        "foresee": False,
                        "fractal": False,
                        "gaspard": False,
                        "glympse": False,
                        "horcrux": False,
                        "iadpush": False,
                        "imobile": False,
                        "insider": False,
                        "intromi": False,
                        "jackpal": False,
                        "jackson": False,
                        "janrain": False,
                        "javaxml": False,
                        "jumptap": False,
                        "kochava": False,
                        "kontakt": False,
                        "kuaiyou": False,
                        "liftoff": False,
                        "ligatus": False,
                        "marketo": False,
                        "meglive": False,
                        "metrics": False,
                        "minidev": False,
                        "mobclix": False,
                        "mofiler": False,
                        "mozilla": False,
                        "msebera": False,
                        "nativex": False,
                        "nearbee": False,
                        "netmera": False,
                        "newspic": False,
                        "nielsen": False,
                        "oblador": False,
                        "parsely": False,
                        "picasso": False,
                        "pilgrim": False,
                        "pinable": False,
                        "pincrux": False,
                        "plexure": False,
                        "posthog": False,
                        "proximi": False,
                        "pulsate": False,
                        "reprint": False,
                        "retency": False,
                        "rollbar": False,
                        "rtlview": False,
                        "scandit": False,
                        "segment": False,
                        "sensoro": False,
                        "skyhook": False,
                        "spotify": False,
                        "suizong": False,
                        "support": True,
                        "sync2ad": False,
                        "taboola": False,
                        "tabtale": False,
                        "tamedia": False,
                        "tealeaf": False,
                        "tealium": False,
                        "telerik": False,
                        "teliver": False,
                        "tencent": False,
                        "twitter": False,
                        "upsight": False,
                        "vending": False,
                        "wannads": False,
                        "weather": False,
                        "woorlds": False,
                        "wootric": False,
                        "wortise": False,
                        "yocvisx": False,
                        "youappi": False,
                        "zaytsev": False,
                        "zendesk": False,
                        "zestadz": False,
                        "zhidian": False,
                        "39geopla": False,
                        "7moorsdk": False,
                        "acrarium": False,
                        "acrcloud": False,
                        "adbuddiz": False,
                        "adcolony": False,
                        "addapttr": False,
                        "adfalcon": False,
                        "adincube": False,
                        "adjustio": False,
                        "adlantis": False,
                        "admarvel": False,
                        "adserver": False,
                        "adtiming": False,
                        "alphonso": False,
                        "amadrive": False,
                        "anywhere": False,
                        "apicloud": False,
                        "appbrain": False,
                        "appflood": False,
                        "appirits": False,
                        "applause": False,
                        "applovin": False,
                        "appmedia": False,
                        "appmonet": False,
                        "appnexus": False,
                        "appodeal": False,
                        "appplant": False,
                        "appvador": False,
                        "auditude": False,
                        "badlogic": False,
                        "bilibili": False,
                        "bugsense": False,
                        "bumptech": False,
                        "carnival": False,
                        "caverock": False,
                        "charbeat": False,
                        "chromium": False,
                        "cocos2dx": False,
                        "codepush": False,
                        "comscore": False,
                        "crashsdk": False,
                        "darkside": False,
                        "deltadna": False,
                        "elvishew": False,
                        "emagsoft": False,
                        "estimote": False,
                        "eulerian": False,
                        "evernote": False,
                        "evrythng": False,
                        "facebook": False,
                        "firebase": False,
                        "fluctsdk": False,
                        "gpakorea": False,
                        "greendao": False,
                        "houndify": False,
                        "houseads": False,
                        "huntmads": False,
                        "imadpush": False,
                        "indvseng": False,
                        "inmarket": False,
                        "instabug": False,
                        "integral": False,
                        "intellij": False,
                        "itextpdf": False,
                        "iusys828": False,
                        "jwplayer": False,
                        "leadbolt": False,
                        "leanplum": False,
                        "learnium": False,
                        "llvision": False,
                        "looksery": False,
                        "lotadata": False,
                        "madhouse": False,
                        "material": False,
                        "mineralt": False,
                        "mixpanel": False,
                        "mobclick": False,
                        "mobihelp": False,
                        "mobonsdk": False,
                        "mobpower": False,
                        "mobvista": False,
                        "moengage": False,
                        "mopinion": False,
                        "mytarget": False,
                        "newrelic": False,
                        "noahpass": False,
                        "nostra13": False,
                        "omniture": False,
                        "onestore": False,
                        "onetrust": False,
                        "openback": False,
                        "openudid": False,
                        "outbrain": False,
                        "pollfish": False,
                        "predicio": False,
                        "protobuf": False,
                        "pubmatic": False,
                        "punchbox": False,
                        "receptiv": False,
                        "rootbeer": False,
                        "rootsoft": False,
                        "roximity": False,
                        "sailthru": False,
                        "sandhook": False,
                        "sense360": False,
                        "shopkick": False,
                        "singular": False,
                        "situmsdk": False,
                        "snowplow": False,
                        "squareup": False,
                        "startapp": False,
                        "synerise": False,
                        "taptrack": False,
                        "telequid": False,
                        "thalitor": False,
                        "tradplus": False,
                        "trialpay": False,
                        "trillbit": False,
                        "unionpay": False,
                        "vectaury": False,
                        "veloxity": False,
                        "wasabeef": False,
                        "weborama": False,
                        "webtrekk": False,
                        "yahooads": False,
                        "yieldlab": False,
                        "zendrive": False,
                        "360dialog": False,
                        "actmobile": False,
                        "ad4screen": False,
                        "adadapted": False,
                        "adfitdaum": False,
                        "adfurikun": False,
                        "adpopcorn": False,
                        "airbridge": False,
                        "akamaimap": False,
                        "alipaysdk": False,
                        "altbeacon": False,
                        "amazonads": False,
                        "amplitude": False,
                        "appcompat": True,
                        "apperhand": False,
                        "applinkio": False,
                        "appmattus": False,
                        "appsflyer": False,
                        "apptimize": False,
                        "backelite": False,
                        "backtrace": False,
                        "blueconic": False,
                        "braintree": False,
                        "bugfender": False,
                        "cifrasoft": False,
                        "clevertap": False,
                        "cloudmobi": False,
                        "codewaves": False,
                        "cooladata": False,
                        "dynatrace": False,
                        "ensighten": False,
                        "exoplayer": False,
                        "fancypush": False,
                        "fineboost": False,
                        "flowsense": False,
                        "footmarks": False,
                        "freewheel": False,
                        "frogermcs": False,
                        "fullstory": False,
                        "googleads": False,
                        "googletag": False,
                        "gpshopper": False,
                        "growingio": False,
                        "helpshift": False,
                        "hockeyapp": False,
                        "hotmobsdk": False,
                        "idreamsky": False,
                        "infonline": False,
                        "ipquality": False,
                        "jetbrains": False,
                        "lifecycle": False,
                        "locuslabs": False,
                        "medialets": False,
                        "microsoft": False,
                        "mintegral": False,
                        "mobincube": False,
                        "mobiquity": False,
                        "moodmedia": False,
                        "mparticle": False,
                        "mytracker": False,
                        "nitrodesk": False,
                        "objectbox": False,
                        "objectweb": False,
                        "offertoro": False,
                        "onesignal": False,
                        "openfeint": False,
                        "orhanobut": False,
                        "personaly": False,
                        "pingstart": False,
                        "pinterest": False,
                        "pontiflex": False,
                        "pubnative": False,
                        "pushwoosh": False,
                        "qualtrics": False,
                        "quantcast": False,
                        "schibsted": False,
                        "scoreloop": False,
                        "senddroid": False,
                        "sentiance": False,
                        "sephiroth": False,
                        "shallwead": False,
                        "signal360": False,
                        "smartbeat": False,
                        "smartlook": False,
                        "smartyads": False,
                        "snapadkit": False,
                        "socialize": False,
                        "supership": False,
                        "swmansion": False,
                        "taplytics": False,
                        "tapstream": False,
                        "tiktoksdk": False,
                        "transpera": False,
                        "tutucloud": False,
                        "twinedata": False,
                        "twitter4j": False,
                        "usebutton": False,
                        "websocket": False,
                        "webtrends": False,
                        "widespace": False,
                        "admanmedia": False,
                        "adtheorent": False,
                        "andrognito": False,
                        "appsamurai": False,
                        "appsgeyser": False,
                        "apptentive": False,
                        "atinternet": False,
                        "awskinesis": False,
                        "beaconbank": False,
                        "bidmachine": False,
                        "brightcove": False,
                        "bugclipper": False,
                        "calldorado": False,
                        "caramelads": False,
                        "chartboost": False,
                        "clearblade": False,
                        "cloudinary": False,
                        "conversant": False,
                        "deploygate": False,
                        "gamesparks": False,
                        "ganalytics": False,
                        "googleapis": False,
                        "googlec2dm": False,
                        "googlemaps": False,
                        "googlemisc": False,
                        "googleplay": False,
                        "greedygame": False,
                        "greenrobot": False,
                        "greystripe": False,
                        "growthpush": False,
                        "hypertrack": False,
                        "ironsource": False,
                        "jailmonkey": False,
                        "kakaoadsdk": False,
                        "localytics": False,
                        "madvertise": False,
                        "metasploit": False,
                        "millennial": False,
                        "opencensus": False,
                        "openlocate": False,
                        "opensignal": False,
                        "optimizely": False,
                        "partytrack": False,
                        "peanutlabs": False,
                        "pushspring": False,
                        "revenuecat": False,
                        "silverpush": False,
                        "singlespot": False,
                        "splunkmint": False,
                        "sponsorpay": False,
                        "spoteerarc": False,
                        "tapcontext": False,
                        "tnkfactory": False,
                        "togetherad": False,
                        "triplelift": False,
                        "twitterads": False,
                        "ucwebucads": False,
                        "verizonads": False,
                        "virtualapp": False,
                        "wonderpush": False,
                        "xtremelabs": False,
                        "adgatemedia": False,
                        "alohalytics": False,
                        "amulyakhare": False,
                        "appdynamics": False,
                        "areametrics": False,
                        "askingpoint": False,
                        "ayetstudios": False,
                        "backendless": False,
                        "bazaarvoice": False,
                        "bottomsheet": False,
                        "butterknife": False,
                        "byydadfonic": False,
                        "codelocator": False,
                        "colorpicker": False,
                        "crashlytics": False,
                        "crittercism": False,
                        "debugdrawer": False,
                        "exacttarget": False,
                        "fineapptech": False,
                        "googledrive": False,
                        "groundtruth": False,
                        "indooratlas": False,
                        "inneractive": False,
                        "intrasonics": False,
                        "journeyapps": False,
                        "kissmetrics": False,
                        "lineadmolin": False,
                        "lineadsfive": False,
                        "matomopiwik": False,
                        "ninjametics": False,
                        "oneaudience": False,
                        "opentracker": False,
                        "otherlevels": False,
                        "playfabjava": False,
                        "pointinside": False,
                        "qihoopacker": False,
                        "rnfetchblob": False,
                        "sanojpunchi": False,
                        "seventynine": False,
                        "signalframe": False,
                        "skplanettad": False,
                        "talkingdata": False,
                        "tapresearch": False,
                        "theartofdev": False,
                        "tremorvideo": False,
                        "unacastpure": False,
                        "virgomobile": False,
                        "vivopushsdk": False,
                        "yougoodtech": False,
                        "adgeneration": False,
                        "advangelists": False,
                        "airpush_klyv": False,
                        "appanalytics": False,
                        "appcelerator": False,
                        "avazuanative": False,
                        "bouncycastle": False,
                        "burhanrashid": False,
                        "cedexisradar": False,
                        "couluscoelib": False,
                        "dynamicyield": False,
                        "energysource": False,
                        "gtalkservice": False,
                        "huqsourcekit": False,
                        "instreamatic": False,
                        "mobilevision": False,
                        "morgoopacker": False,
                        "ogurypresage": False,
                        "prebidmobile": False,
                        "revealmobile": False,
                        "saysorewards": False,
                        "sinoweibosdk": False,
                        "spongycastle": False,
                        "superawesome": False,
                        "superrewards": False,
                        "tagcommander": False,
                        "tencentqqsdk": False,
                        "theoremreach": False,
                        "treasuredata": False,
                        "twittermopub": False,
                        "urbanairship": False,
                        "userexperior": False,
                        "vkontaktesdk": False,
                        "walkmeabbiio": False,
                        "yinzcamsobek": False,
                        "3bitterbeacon": False,
                        "accessibility": False,
                        "appconsentcmp": False,
                        "appgeneration": False,
                        "appodealstack": False,
                        "buzzadbenefit": False,
                        "cleaninsights": False,
                        "contentsquare": False,
                        "datatransport": False,
                        "foxappadforce": False,
                        "gameanalytics": False,
                        "grabanalytics": False,
                        "iridgepopinfo": False,
                        "linetelemetry": False,
                        "maiobyimobile": False,
                        "piracychecker": False,
                        "smartadserver": False,
                        "squaremetrics": False,
                        "supersonicads": False,
                        "tjhelloadeasy": False,
                        "wapstartplus1": False,
                        "weibodeviceid": False,
                        "zohoanalytics": False,
                        "adjustunbotify": False,
                        "agoraanalytics": False,
                        "beaconsinspace": False,
                        "circleprogress": False,
                        "gamaniabeanfun": False,
                        "googleprotobuf": False,
                        "morphingbutton": False,
                        "mtractionmfaas": False,
                        "openmeditation": False,
                        "radiusnetworks": False,
                        "rubiconproject": False,
                        "wechatlocation": False,
                        "fybersponsorpay": False,
                        "gomfactoryadpie": False,
                        "millennialmedia": False,
                        "nineoldandroids": False,
                        "noxmobiaiadmobi": False,
                        "profilepassport": False,
                        "reactivestreams": False,
                        "snssdkbytedance": False,
                        "springframework": False,
                        "unknowntrackers": False,
                        "yueyingcrashsdk": False,
                        "alibabaanalytics": False,
                        "discordtelemetry": False,
                        "gameloft_billing": False,
                        "geouniqcloud4win": False,
                        "mobileengagement": False,
                        "samsungtelemetry": False,
                        "sensorsanalytics": False,
                        "snapchatloginkit": False,
                        "amberweatheradsdk": False,
                        "daochengthinkyeah": False,
                        "googlecrashlytics": False,
                        "googleplaybilling": False,
                        "inbrainsurveyssdk": False,
                        "rakutenunifiedads": False,
                        "reactnativefabric": False,
                        "soundhaundadverts": False,
                        "epicgamesanalytics": False,
                        "malvertingadfrauds": False,
                        "mozillacrashreport": False,
                        "skillzandroidunity": False,
                        "vodafonenetperform": False,
                        "apprightbygryphonet": False,
                        "digitalunionshuzilm": False,
                        "kevelformerlyadzerk": False,
                        "malvertingadfrauds2": False,
                        "phunwareadvertising": False,
                        "rakutenanalyticssdk": False,
                        "thindownloadmanager": False,
                        "yahoojapandatashare": False,
                        "dearonelocationvalue": False,
                        "mezzomediaadplatform": False,
                        "usabillabysalesforce": False,
                        "customactivityoncrash": False,
                        "netvelocitypassivesdk": False,
                        "telariatremorvideosdk": False,
                        "thinkingdataanalytics": False,
                        "flutter_libphonenumber": False,
                        "aitypemalvertingrelated": False,
                        "openalliancehuaweiadskit": False,
                        "quantumgraphqgraphappier": False,
                        "salesforcemarketingcloud": False,
                        "playtestcloudeventtracking": False,
                        "quadrantdataacquisitionsdk": False,
                        "analyticsbynpawyouborasuite": False,
                        "flutter_local_notifications": False,
                        "amazonmobileanalyticsamplify": False,
                        "gmobigo2reachgeneralmobilecorporation": False,
                    },
                    "filetype": 1,
                    "file_size": 1165709,
                    "file_small": False,
                    "file_nb_dir": 94,
                    "arm_properties": {
                        "adb": False,
                        "exec": False,
                        "kill": False,
                        "zerg": False,
                        "ch***": False,
                        "shell": False,
                        "mounts": False,
                        "mtk_su": False,
                        "ptrace": False,
                        "exploid": False,
                        "geteuid": False,
                        "pm_list": False,
                        "supersu": False,
                        "am_start": False,
                        "dalvikvm": False,
                        "ragecage": False,
                        "levitator": False,
                        "loadclass": False,
                        "towelroot": False,
                        "anti-frida": False,
                        "mempodroid": False,
                        "pm_install": False,
                        "url_in_exec": False,
                        "am_broadcast": False,
                        "proc_version": False,
                        "dexclassloader": False,
                        "possible_exploit": False,
                    },
                    "dex_properties": {
                        "odex": False,
                        "magic": 38,
                        "bad_sha1": False,
                        "thuxnder": False,
                        "big_header": False,
                        "bad_adler32": False,
                        "magic_unknown": False,
                    },
                    "file_innerzips": False,
                    "file_nb_classes": 1340,
                    "wide_properties": {
                        "gps": False,
                        "mms": False,
                        "sfr": False,
                        "kill": False,
                        "qemu": False,
                        "urls": [],
                        "miner": False,
                        "c2_anon": False,
                        "has_url": False,
                        "am_start": False,
                        "app_name": None,
                        "coinhive": False,
                        "cryptoloot": False,
                        "ip_address": False,
                        "javascript": False,
                        "jni_onload": False,
                        "pm_install": False,
                        "su_exector": False,
                        "systemprop": False,
                        "apk_zip_url": False,
                        "android_wear": False,
                        "china_mobile": False,
                        "china_unicom": False,
                        "phonenumbers": [],
                        "play_protect": False,
                        "china_telecom": False,
                        "play_services": False,
                        "screen_on_off": False,
                        "base64_strings": [],
                        "cryptocurrency": False,
                        "has_phonenumbers": False,
                    },
                    "smali_properties": {
                        "su": False,
                        "2fa": False,
                        "adb": False,
                        "dns": False,
                        "gps": False,
                        "jni": False,
                        "nop": True,
                        "nox": False,
                        "scp": False,
                        "ssh": False,
                        "uri": False,
                        "zip": True,
                        "andy": False,
                        "c2dm": False,
                        "call": False,
                        "gzip": False,
                        "http": False,
                        "json": False,
                        "post": False,
                        "rssi": False,
                        "ssid": False,
                        "uuid": False,
                        "wifi": False,
                        "board": False,
                        "brand": False,
                        "crc32": False,
                        "email": False,
                        "model": False,
                        "tasks": False,
                        "base64": False,
                        "camera": False,
                        "logcat": False,
                        "packed": False,
                        "record": False,
                        "ringer": False,
                        "sensor": False,
                        "socket": False,
                        "battery": False,
                        "busybox": False,
                        "cpu_abi": False,
                        "gesture": False,
                        "get_mac": False,
                        "pangxie": False,
                        "product": False,
                        "rooting": False,
                        "version": False,
                        "vibrate": False,
                        "webview": False,
                        "airplane": False,
                        "calendar": False,
                        "call_log": False,
                        "contacts": False,
                        "debugger": False,
                        "dex_file": False,
                        "emulator": False,
                        "end_call": False,
                        "get_imei": False,
                        "get_imsi": False,
                        "hardware": False,
                        "keyguard": False,
                        "load_dex": False,
                        "multidex": [],
                        "password": False,
                        "send_sms": False,
                        "shortcut": False,
                        "wakelock": False,
                        "bluetooth": False,
                        "bookmarks": False,
                        "doze_mode": False,
                        "kill_proc": False,
                        "substrate": False,
                        "wallpaper": False,
                        "android_id": False,
                        "apkprotect": False,
                        "bluestacks": False,
                        "bootloader": False,
                        "encryption": False,
                        "genymotion": False,
                        "ip_address": False,
                        "javascript": False,
                        "link_speed": False,
                        "microphone": False,
                        "misecurity": False,
                        "reflection": True,
                        "search_url": False,
                        "stacktrace": False,
                        "system_app": False,
                        "teamviewer": False,
                        "user_agent": False,
                        "account_pwd": False,
                        "answer_call": False,
                        "dhcp_server": False,
                        "fingerprint": False,
                        "obfuscation": False,
                        "package_sig": False,
                        "receive_sms": False,
                        "ssl_pinning": False,
                        "url_history": False,
                        "vnd_package": False,
                        "class_loader": True,
                        "device_admin": False,
                        "get_accounts": False,
                        "load_library": False,
                        "manufacturer": False,
                        "phone_number": False,
                        "play_protect": False,
                        "ip_properties": False,
                        "methodchannel": False,
                        "record_screen": False,
                        "set_component": False,
                        "cookie_manager": False,
                        "execute_native": False,
                        "intent_chooser": False,
                        "open_non_asset": False,
                        "package_delete": False,
                        "perform_action": False,
                        "abort_broadcast": False,
                        "get_line_number": False,
                        "package_session": False,
                        "check_permission": False,
                        "dex_class_loader": True,
                        "get_package_info": False,
                        "get_sim_operator": False,
                        "hide_softkeyboard": False,
                        "get_sim_slot_index": False,
                        "get_sim_country_iso": False,
                        "get_network_operator": False,
                        "accessibility_service": False,
                        "get_sim_serial_number": False,
                        "get_installed_packages": False,
                        "get_active_network_info": False,
                        "get_external_storage_stage": False,
                        "get_installer_package_name": False,
                        "get_top_activity_component": False,
                    },
                    "sanitized_basename": "sample3.apk",
                    "manifest_properties": {
                        "swf": False,
                        "maxSDK": None,
                        "minSDK": None,
                        "services": [],
                        "libraries": [],
                        "providers": [],
                        "receivers": [],
                        "targetSDK": None,
                        "activities": ["'ph0wn.ctf.playfrequency.MainActivity'"],
                        "permissions": [],
                        "package_name": "ph0wn.ctf.playfrequency",
                        "main_activity": "ph0wn.ctf.playfrequency.MainActivity",
                        "listens_incoming_sms": False,
                        "listens_outgoing_call": False,
                    },
                }
            },
            200,
        )
